<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="/Public/js/jquery.uploadify.v2.1.4.min.js"></script> 
<div class="infoBox">
<br />
<br />
<form action="{:U('System/setSys')}" method="post">
<input name="webid" type="hidden" value="{$webid}" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">
<tr>
<td width="14%" class="infoBoxTd">网站名称：</td>
<td colspan="2"><input name="webname" type="text" value="{$webname}" class="formTitle" style="width:300px;" /></td>
</tr>
<tr>
<td class="infoBoxTd">网站标题：</td>
<td colspan="2"><input name="webtitle" type="text" value="{$webtitle}" id="SiteTitle" class="formTitle" style="width:400px;" /></td>
</tr>

<tr>
<td class="infoBoxTd">网站关键词：</td>
<td colspan="2"><input name="webkeywords" type="text" value="{$webkeywords}" class="formTitle" style="width:400px;" /> <span class="Dp">将被搜索引擎用来搜索您网站的关键内容，每个关键字用英文逗号分隔</span></td>
</tr>

<tr>
<td class="infoBoxTd">网站描述：<br /></td>
<td colspan="2"><input name="webdescription" type="text" value="{$webdescription}" class="formTitle" style="width:400px;" /> <span class="Dp">描述中请不要带英文的逗号</span></td>
</tr>


<tr>
    <td class="infoBoxTd">版权信息：</td>
    <td><textarea id="powerby" name="powerby" style="width:400px;height:200px;">{$powerby}</textarea></td>
</tr>


<tr>
    <td class="infoBoxTd">联系方式：</td>
    <td><textarea id="lianxi" name="lianxi" style="width:300px;height:200px;">{$lianxi}</textarea></td>
</tr>

<tr>
	<td class="infoBoxTd">LOGO1：</td>
	<td colspan="2">
		<img id="logo_top" src="<neq name='logo_top' value=''>{$logo_top}<else/>__PUBLIC__/images/nopic.gif</neq>" width="150" height="106" style="float:left;margin-right:20px;" />
		<div class="upimg-box">
			<div id="fileQueue"></div>
			<input id="file_upload_logo_top" type="file" /><input name="logo_top" type="hidden" value="{$logo_top}"  />
		</div>
		<div class="tj_xiangsu">
			推荐像素：150px * 106px
		</div>
	</td>
</tr>
<script>
//图片上传
$("#file_upload_logo_top").uploadify({
		'uploader'       : '__JS__/swf/uploadify.swf',
		'script'         : '__JS__/upload/uploadifywushuiyinsuolue.php',
		'cancelImg'      : '__JS__/upload/cancel.png',
		'folder'         : 'data/logo_top',
		'queueID'        : 'fileQueue',
		'sizeLimit'      :	1 * 1000 * 1024,
		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.
		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.
		'auto'           : true,
		'multi'          : false,	
		'onComplete':function(event,queueId,fileObj,response,data){
			$('input[name="logo_top"]').val(response);
			$('#logo_top').attr('src', response);
		}
});

</script>

<tr>
	<td class="infoBoxTd">LOGO2：</td>
	<td colspan="2">
		<img id="logo_di" src="<neq name='logo_di' value=''>{$logo_di}<else/>__PUBLIC__/images/nopic.gif</neq>" width="150" height="106" style="float:left;margin-right:20px;" />
		<div class="upimg-box">
			<div id="fileQueue"></div>
			<input id="file_upload_logo_di" type="file" /><input name="logo_di" type="hidden" value="{$logo_di}"  />
		</div>
		<div class="tj_xiangsu">
			推荐像素：150px * 106px
		</div>
	</td>
</tr>
<script>
//图片上传
$("#file_upload_logo_di").uploadify({
		'uploader'       : '__JS__/swf/uploadify.swf',
		'script'         : '__JS__/upload/uploadifywushuiyinsuolue.php',
		'cancelImg'      : '__JS__/upload/cancel.png',
		'folder'         : 'data/logo_di',
		'queueID'        : 'fileQueue',
		'sizeLimit'      :	1 * 1000 * 1024,
		'fileExt'        : '*.jpg;*.gif;*.png;', //允许文件上传类型,和fileDesc一起使用.
		'fileDesc'       : '*.jpg;*.gif;*.png;',  //选择文件对话框中的提示文本.
		'auto'           : true,
		'multi'          : false,	
		'onComplete':function(event,queueId,fileObj,response,data){
			$('input[name="logo_di"]').val(response);
			$('#logo_di').attr('src', response);
		}
});

</script>

<tr>
<td class="infoBoxTd">网站当前状态：</td>
<td colspan="2">
<input type="radio" name="webstatus" value="0" <eq name="webstatus" value="0">checked="checked"</eq>/>关闭
<input type="radio" name="webstatus" value="1" <eq name="webstatus" value="1">checked="checked"</eq>/>开启&nbsp;&nbsp;维护期间可设置关闭网站</td>
</tr>
<tr>
<td class="infoBoxTd">维护说明：</td>
<td colspan="2">
<textarea name="WebMaintenanceInstructions" rows="2" cols="20" id="WebMaintenanceInstructions" class="formTextarea" style="width:400px;">{$WebMaintenanceInstructions}</textarea> <span class="Dp">在网站关闭情况下显示，支持html语法</span></td>
</tr>


</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td><input type="submit" name="Button1" value="保存" class="formInput01" /></td>
</tr>
</table>
</form>
</div>
<script language="javascript">
var k1;
KindEditor.ready(function(K) {
	k1 = K.create('#powerby', {
		allowFileManager : true
	});
});

var k2;
KindEditor.ready(function(K) {
	k2 = K.create('#lianxi', {
		allowFileManager : true
	});
});


</script>

<include file="Public:footer" />
